from django.db import models


# Create your models here.
class User(models.Model):
    phone = models.CharField(max_length=11, unique=True, verbose_name='账号')
    password = models.CharField(max_length=6, verbose_name='密码')
    email = models.CharField(max_length=20, verbose_name='邮箱')

    class Meta:
        db_table = 'usertwo'

    def __str__(self):
        return self.phone
